//
//  EvenDetailBottomView.m
//  ConvenientlyTake
//
//  Created by 森鑫 on 2022/12/22.
//

#import "EvenDetailBottomView.h"

@implementation EvenDetailBottomView


- (void)awakeFromNib{
    [super awakeFromNib];
    self.leftBtn.layer.cornerRadius = 4;
    self.leftBtn.layer.borderColor = RGBA(22, 93, 255, 1).CGColor;
    self.leftBtn.layer.borderWidth = 0.5;
    self.leftBtn.layer.masksToBounds = YES;
    
    self.rightBtn.layer.cornerRadius = 4;
    self.rightBtn.layer.masksToBounds = YES;
}

- (IBAction)rightBtnAction:(UIButton *)sender {
    NSInteger index = sender.tag - 1000;
    if (self.delegate && [self.delegate respondsToSelector:@selector(selelctItemWitIndex:andSender:)]) {
        [self.delegate selelctItemWitIndex:index andSender:sender];
    }
}

- (IBAction)leftBtnAction:(UIButton *)sender {
    NSInteger index = sender.tag - 1000;
    if (self.delegate && [self.delegate respondsToSelector:@selector(selelctItemWitIndex:andSender:)]) {
        [self.delegate selelctItemWitIndex:index andSender:sender];
    }
}


@end
